package com.antfin.exam.member.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name= "BONUS")
public interface BonusRemoteService {
    @RequestMapping(value = "/bonus/{userId}/take-bonus-score/{bonusScoreId}")
    public int takeBonusScore(@PathVariable("userId") String userId, @PathVariable("bonusScoreId") String bonusScoreId, @RequestParam(value = "score") int score);
}